package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.Good;
import com.adu.demo.mapper.GoodMapper;
import com.adu.demo.service.IGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class GoodService implements IGoodService{
    @Autowired
    private GoodMapper goodMapper;

    @Override
    public List<Good> getList(Good good){
        return goodMapper.getList(good);
    }
    @Override
    public Good getById(Long id){
        return goodMapper.getById(id);
    }
    @Override
    public int save(Good good){
        return goodMapper.save(good);
    }
    @Override
    public int deleteById(Long id){
        return goodMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  goodMapper.deleteByIds(ids);
    }
    @Override
    public int update(Good good){
        return goodMapper.update(good);
    }
}